.adm-modal {
  --z-index: var(--adm-modal-z-index, 1000);
  position: fixed;
  z-index: var(--z-index);
}

.adm-modal .adm-modal-mask {
  z-index: 0;
}

.adm-modal-wrap {
  position: fixed;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: auto;
  min-width: 560px;
  max-width: 75vw;
  transform: translate(-50%, -50%);
}

.adm-modal-main {
  width: 100%;
  font-size: 28px;
  background-color: white;
  border-radius: 16px;
  overflow: hidden;
}

.adm-modal-main .adm-modal-body {
  padding: 40px 24px 24px;
}

.adm-modal-main .adm-modal-body .adm-modal-close {
  position: absolute;
  right: 24px;
  top: 24px;
  color: var(--adm-color-weak);
  padding: 4px;
}

.adm-modal-main .adm-modal-body-header-wrapper {
  display: flex;
  justify-content: center;
}

.adm-modal-main .adm-modal-body-title {
  font-weight: bold;
  font-size: 36px;
  line-height: 50px;
  text-align: center;
}

.adm-modal-main .adm-modal-body-content {
  max-height: 70vh;
  overflow-x: hidden;
  overflow-y: auto;
  font-size: 30px;
  line-height: 1.4;
  color: #333;
}

.adm-modal-main .adm-modal-footer {
  user-select: none;
  padding: 16px 24px 24px;
}

.adm-modal-main .adm-modal-footer .adm-modal-button {
  font-size: 36px;
  line-height: 50px;
  border-right: solid 1px var(--adm-border-color);
}

.adm-modal-main .adm-modal-footer .adm-modal-button:last-child {
  border-right: none;
}

.adm-modal-main .adm-modal-footer .adm-modal-button:not(.adm-modal-button-primary) {
  padding-top: 0;
  padding-bottom: 0;
}

.adm-modal-main .adm-modal-footer .adm-modal-button:not(.adm-modal-button-primary)::before {
  display: none;
}

.adm-modal-main .adm-modal-footer .adm-modal-button:not(.adm-modal-button-primary):active {
  opacity: 0.7;
}